package com.lab.dao;

import com.lab.pojo.Device;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DeviceDao {
    List<Device> allDevices();

    Device findDeviceById(Long did);

    void addDevice(Device device);

    void updateDevice(Device device);

    void deleteDevice(Long[] did);

    List<Device> findDevicesScrap();

    List<Device> findDevicesRepair();

    List<Device> findDevicesUsed();
}
